import React, {useState, useEffect} from 'react';
import {heroList} from '../../service/hero'

const Hero = () => {
  const [count, setCount] = useState(0);

  useEffect(()=> {
    console.log('xxx', window.INITIAL_DATA)
  }, [])

  return (
    <div onClick={() => {
      console.log(count)
      setCount(prevState => prevState + 1);
    }}>hero {count}</div>
  )
}

export default Hero;